home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / misc_pto / mshelp / special.hlp < prev   
Text File  |  1988-03-29  |  8KB  |  181 lines

  1.      Each page starts with six box size and color description numbers 
  2. preceded by an asterix '*' on the first column.  This is ignored because 
  3. there is no asterix yet.
  4.  
  5.      The format is top row, left column, bottom row, right column, character 
  6. color, background color.
  7.  
  8. top row..................................
  9. left column                .
  10. .                    .
  11. .                    bottom row
  12. ........................................right column
  13.  
  14.      The top row must be 1 or greater and the bottom row must be 25 or less.
  15.      The left column must be 1 or greater and the right column must be 80 or 
  16. less.  It may be obvious but the difference between the two rows and the two 
  17. columns should be two or more.  In other words, if the top row is 1, the 
  18. bottom row must be 3 or more.  If the left column is 5, then the right column 
  19. must be 7 or more.  Otherwise, how can you have any text?
  20.  
  21.      You must be in an 80 by 25 text mode on a non-flicker video adaptor such 
  22. as the monochrome adaptor, EGA and VGA.
  23.  
  24.      Until all six numbers are obtained, all letters are ignored.  Right 
  25. after the numbers are obtained, there should be a carriage return since this 
  26. will skip one character (the CR) after the sixth number and everything 
  27. afterwards till another asterix '*' on the first column becomes the help/menu 
  28. page to be displayed.
  29.  
  30.      In actual use, all this above is not used and should be deleted since 
  31. this still uses TSR memory space but is not used.
  32.  
  33. *top row 2
  34. left column 1
  35. bottom row 5
  36. right column 30
  37. foreground character color is white 7
  38. background behind the character color is blue 1
  39.  
  40. This is the text to be displayed.  This part is ignored since it is outside.
  41. as page 0 of 256 allowed
  42.  
  43. *all six parameters can be on same line like this 1 1 20 80 2 7
  44.  
  45.      The screen on page 1 is 20 row high, of which 18 are used since the line
  46. edge will use 2 of them up.
  47.      The screen is the maximum 80 characters wide, of which 78 are useable
  48. since the line edge will use 2 of them.
  49.      The foreground color is # 2 (green) and background is 7 (white).
  50.      As long as the asterix '*' star is not on the first left column, it is
  51. not used as the parameter for the screen size.
  52.  
  53.      If a line goes past 78 characters wide, then the extra lines are cut off from
  54. the screen.  If the number of rows exceed the 20 rows, then the extra is
  55. not displayed.  If there is not enough rows of text to cover the 20 rows,
  56. then the rest of the screen will be blank.
  57. *10 1 20 60
  58. parts can be on a different line since the program will keep looking until
  59. it can find all six parameters needed.  This is not recommended since you 
  60. might forget to have all six but allowed.
  61.      Here, the fore/back-ground colors are set for black on black, which is 
  62. black letter on black background and invisible, but this special case is used 
  63. to mean the default white characters on black background.0 0
  64.  
  65. (blank)
  66.  
  67.  
  68. *top row 1 left column 2 bottom row 23 right column 70 colors 2 5
  69.      For the color codes,
  70.                           0 is for black
  71.                           1 is for blue
  72.                           2 is for green
  73.                           3 is for cyan (blue-green)
  74.                           4 is for red
  75.                           5 is for magenta (purple)
  76.                           6 is for brown (sort of yellow)
  77.                           7 is for grey
  78. so this is green characters on a purple background.  8 - 15 makes 
  79. it brighter.
  80.  
  81.      To have a reverse cursor, just use BASIC with the COLOR 
  82. statement to write the words in appropriate colors and INKEY$ to 
  83. get the cursor movements.
  84.  
  85.      If you like, you can use the MSIMPLE.EXE in CompuServe GO 
  86. IBMSW to MakeinkeySIMPLE and various LCShort programs exist to 
  87. change the screen from graphic modes to text modes.  Plus one 
  88. which forces graphic mode to go to text mode without destroying 
  89. the graphic image, then back again (needs EGA, VGA etc).
  90.  
  91.  
  92.      This is still grouped under the page above but cannot be seen since the 
  93. setting for the screen size excludes this section.
  94.  
  95.  
  96. **top row 1 left column 2 bottom row 23 right column 70 colors 7 0   
  97.      This overwrites the one above in plain white characters on
  98. black and is visible in monochrome mode.
  99.  
  100.      When switching between writing to monochrome area and CGA 
  101. area, register AL = 4 and AL = 5 should be used along with the 
  102. setting as recommended in the BASIC manual to switch displays 
  103. under Appendix I, heading 'Switching Displays'.
  104.  
  105.      To switch to monochrome adapter,
  106. DEF SEG = 0:POKE &H410,(PEEK(&H410) OR &H30)
  107.  
  108.      To switch to color adapter,
  109. DEF SEG = 0:POKE &H410,(PEEK(&H410) AND &HCF) OR &H10
  110.  
  111.      See the BASIC manual for details.
  112.  
  113.      To do so with an assembler or LCS, this is the equipment flag 
  114. word at location 0:410H or 0:1040 decimal, with bit 5 and 4 set to 
  115. binary 10 (32 decimal) for color card and 11 (48 decimal) for 
  116. monochrome.
  117.  
  118.      Both the equipment flags and MSHELP must be set because 
  119. MSHELP uses the BIOS to first clear the part of the screen where 
  120. the text is to be written, and BIOS relies on the proper setting 
  121. of the equipment flags.
  122.  
  123. WARNING:
  124.  
  125. ===================================================================
  126. |     This switching of displays is not recommended because of an |
  127. |insidious and infamous design in the IBM PC which can burn out   |
  128. |either/both the video boards and/or the monitors.                |
  129. |     Many newer well known brand name video boards and monitors  |
  130. |may be able to take it, others may suffer catastrophic failures  |
  131. |instantly or with repeated/intermittent switching of monitors.   |
  132. |     Results may also vary widely with the PC/compatible/clone   |
  133. |used.  In general, older machines/components have more trouble.  |
  134. ===================================================================
  135.  
  136.  
  137. *1 1 25 80 7 0
  138.      Multiple screens may be written one after the other as in here, but
  139. since there is no multiple screen saves performed, one page of help/menu 
  140. simply write over the next.  To reverse the writing of page two over page 
  141. one, you must restore the screen and then store it again, followed by 
  142. writing of page one again.
  143.  
  144.      There is nothing to prevent you from displaying all 254 characters 
  145. (chr$(0) is not allowed) in the character set, but in case someone wants 
  146. more features built in here, try to avoid chr$(1) through chr$(31) control 
  147. codes and the bar character '|'.  If you have to include them, prepare to 
  148. do a slight addition to your pop up texts.  Of course, if you didn't think 
  149. this was good enough to contribute anything, then I won't make any additions 
  150. and you can use the entire 254 character set without worrying about future 
  151. compatibility.  If you do use this but your word processor cannot place any 
  152. control codes in your text, you should contact me so that I can make sure 
  153. the special codes use the bar character '|' as the escape sequencer, and no 
  154. control codes are used.
  155.  
  156.  
  157.  
  158.  
  159.      There is also additional information provided if you run MSHELP with 
  160. the parameter 'h' as in MSHELP H
  161.  
  162.      You'll have to use the control-NumLock to pause once or twice to read 
  163. the entire listing or send the output to a printer to read it.
  164.  
  165. All products and names mentionned are Trademarks or Registered 
  166. Trademarks of their respective companies.
  167. *2 1 9 75 7 1
  168. (c) Copy Right 1987,88 All Rights Reserved.
  169. Dr. Masaaki Sawada, University of Waterloo, Faculty of Science, 
  170. Waterloo Ontario, Canada   N2L 3G1
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.